package 考试.meiguihua;

public class Rose extends Flower{
    private String Origin;

    public Rose() {
    }

    public Rose(String Origin) {
        this.Origin = Origin;
    }

    /**
     * 获取
     * @return Origin
     */
    public String getOrigin() {
        return Origin;
    }

    /**
     * 设置
     * @param Origin
     */
    public void setOrigin(String Origin) {
        this.Origin = Origin;
    }

    public String toString() {
        return "Rose{Origin = " + Origin + "}";
    }

    @Override
    public void showInfo() {
        super.showInfo();
        System.out.println("Origin"+Origin);
    }
    public void warn(){
        System.out.println("不要摘玫瑰花，小心扎手！");
    }
}
